/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 * bbf
 */
package com.github.bluesbruce.so;

import com.github.bluesbruce.so.radio.RadioSoJava;

/**
 * 启动器
 *
 * @author BBF
 */
public class Launcher {

  public static void main(String[] args) {
    System.out.println("调用SO文件");
    RunSoJava r = new RunSoJava();
    int add = r.add(10, 20);
    System.out.printf("测试libAdd：10 + 20 = %d \n\n", add);

    System.out.println("测试指针调用");
    double IYR = 2010;
    double IDAY = 101;
    double IHR = 21.0;
    double IMIN = 2.0;
    double SEC = 14.0;
    double XLAT = -12.3;
    double XLON = 144.2;
    double XHT = 29.8;
    double F10 = 200.0;
    double F10B = 150.0;
    double XKP = 3.33;
    double TEMP = 1;
    double RHO = 1;
    double N2 = 1;
    double O2 = 1;
    float[] W = {1, 1};
    RadioSoJava radioSoJava = new RadioSoJava();
    radioSoJava.zxdqmx(IYR, IDAY, IHR, IMIN, SEC, XLAT, XLON,
        XHT, F10, F10B, XKP, TEMP, RHO, N2, O2, W);
    System.out.printf("测试ZXDQMX，返回 = %.3f  %.3f \n\n", W[0], W[1]);
  }
}
